module.exports = function ($resource, $state, $http, $q, $modal) {
	return {
		restrict: 'AE',
		template: require('../views/p_shop.html'),
		replace: true,
		scope: {
			'p' : '=',
			'close': '=',
			//'state' : '=',
			//'vm' : '=',
		},
		link: function (scope, elements, attrs) {

			console.log('shop');

			console.log(scope.p);

		

		}
	};
};

